package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DishService {

   //菜品列表分頁查詢
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);
    //保存新增菜品
    void save(Dish dish);
    //回显菜品
    Dish findById(Long id);
    //修改
    void update(Dish dish);
    //批量骑手停售
    void startOrEnd(Long[] ids,Integer status);
    //批量删除
    void deleteByIds(Long[] ids);
    //回显菜品
    List<Dish> findList(Long categoryId, Integer status, String name);

    //List<Dish> findByCatgoryId(Long categoryId);
}
